package com.longteng.diamond.dao;

import com.longteng.diamond.domain.ProjectShareNode;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;
import org.springframework.stereotype.Component;

import java.util.List;

public interface BaseMapper{
    /**
     * 查询host、模块、项目成员
     * @param projectShareNode
     * @return
     */
    List<ProjectShareNode> getProjectShareNode(ProjectShareNode projectShareNode);
    /**
     * 查询host、模块、项目成员所有行数
     * @param projectShareNode
     * @return
     */
    long queryAllRow(ProjectShareNode projectShareNode);
    /**
     * 查询host、模块、项目成员
     * @param id
     * @return
     */
    ProjectShareNode findProjectShareNodeById(Integer id);
}